package com.bys.response;


public enum ReultCode {
    SUCCESS_CODE(200,"请求成功"),
    FAIL_CODE(500,"请求失败"),
    LOGIN_ERROR(401,"账号或密码错误"),
    AUTH_ERR(403,"权限不足"),
    TOKEN_ERR(401,"token 不存在"),
    ARGUMENT_ERROR(400,"参数不合法"),
    CODE_ERROR(403,"验证码无效")
    ;
    private Integer code;
    private String message;

    ReultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
